1: Introduction

Welcome!

By Reinout Wolting - 30/03/2025

Welcome to my portfolio for Computational Musicology! On this site there’s an analysis of 2 songs, together with a comparison of them with the class corpus of Computational Musicology 2025.

I decided to take both songs from YouTube, since I know there is a lot of unpopular music artists who deserve more attention. Besides that, I don’t like the type of music that AI makes.


. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Song 1: House song

I found my first song on a YouTube channel called BORNEO. I came across this channel when I was looking for a UK garage / house beat. Then I came across this song and I liked it. This style of house is called rally house, and is often related to race cars.

I’m a DJ myself, and my usual set starts off with songs that are similar to this one (e.g. LOSTBOYJAY - COULD BE WRONG).

I will further refer to this song as ‘House Song’.


. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Song 2: Trance song

I found my second song also via BORNEO. However, this song isn’t rally house, but trance. This creates for the song being a bit faster and having more energy.

My usual DJ set gradually flows from rally house into trance, which is why I’m eager to see the exact differences between the two.

I will further refer to this song as ‘Trance Song’.


. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2: Track-level features

Essentia features correlation


Class corpus features correlation:

In this graph, we can see the correlation between the different features from Essentia. On the diagonal column, all features are 1.00, because the correlation between two of the same variables is always 1.00. Furthermore, we can see that instrumentalness and arousal have the weakest correlation, with a score of -0.69. Valence and arousal have the strongest correlation with a score of 0.55. This makes sense, because the positivity of a song goes together well with whether or not you get aroused by it.

Essentia features in class corpus


Feature comparison of my songs vs. class corpus:

When it comes to my tracks, we can see that they are very high in both engagingness and arousal compared to the rest of the class. For example, Trance Song is the number 2 highestof the class corpus in arousal. They are also both high in danceability.

This means that Essentia characterised my tracks correctly. Both tracks have a lot of energy, which correlates with the variables above being high.

When it comes to the rest of the corpus, my songs have more energy. This is also what I concluded when I listened to the songs of the corpus itself. My tracks are not similar to most of the tracks from the corpus, meaning Essentia did a good job identifying.

As can be seen in the graph, the engagingness increases when the arousal increases. This means that the engagingness and the arousal are positively correlated. Furthermore, as we can see the engagingness and arousal increase, the color of the data becomes more and more towards yellow, starting from dark blue. This means that the danceabiltiy also increases with the engagingness and the arousal. Conclusion: all three variables are positively correlated.

3: Chroma features

Chromagram: House Song


A chromagram shows the intensity of each pitch class over time. It’s a great way to visualize the harmonic content of a track. The x-axis shows time in seconds and the y-axis lists the 12 pitch classes. Brighter colors represent higher intensity (in other words: that note is more prominent at that moment).

This chromagram of House Song shows clear, repeating bright spots in pitch classes like A, G, F, and D. This means that House Song has a looping harmonic structure. This is a typical characteristic for house music: rhythmically stable and repeating. You can also see that pitch class G is more active in the song during the bridges, while A, F and D are more consistent throughout the song.

Chromagram: Trance Song


A chromagram shows the intensity of each pitch class over time. It’s a great way to visualize the harmonic content of a track. The x-axis shows time in seconds and the y-axis lists the 12 pitch classes. Brighter colors represent higher intensity (in other words: that note is more prominent at that moment).

Trance Song’s chromagram looks more evenly distributed. There’s less repetition and more pitch variation throughout the track. Notes like A, E, G and D are strong throughout the song. However, there are not certain parts where one of these pitch classes is more prominent during a certain part of the song. This is a difference with House Song. This also aligns with trance’s style: instead of repeating loops, the song is one long string of music with not that much variation.

Keygram: House Song


Keygram plots compare the chroma features of the audio to a set of key templates. This shows how the harmonic content of the song evolves over time. The color scale represents the distance between the chroma and the closest matching key template: darker areas represent weaker harmonic alignment, and lighter areas represent weaker harmonic alignment.

The keygram of House Song shows clear, repeating dark bands around D major, G major, D minor and G minor. In other words: the keys D and G are used the most. These represent House Song’s stable and looped chord progressions, which is typical for house music. Right after the chorus, the track enters a bridge. This transition indicates with a darker line in the keygram: this means stronger harmonic alignment. Overall, the structure and harmonic clarity support its classification as a house track.

In the audio on the top of this commments is a transition from a chorus (brighter area) to a bridge (darker area):

Keygram: Trance Song


Keygram plots compare the chroma features of the audio to a set of key templates. This shows how the harmonic content of the song evolves over time. The color scale represents the distance between the chroma and the closest matching key template: darker areas represent weaker harmonic alignment, and lighter areas represent weaker harmonic alignment.

The keygram for Trance Song is more continuous, with fewer strong dark bands. This means Trance Song has a more layered and evolving harmonic structure, which is common in trance music. This is also what you can hear when you play the song. Furthermore, there are not certain keys that are way more intense than other keys, meaning the keys in this song are somewhat equally distributed.

Chordogram: House Song (normalistation = identity, distance = cosine)


A chordogram visualizes how well the chroma features of a song match different chord templates over time. Each row represents a chord template and each column is a time slice. The color indicates the distance: how well the chroma at that moment matches the chord. The color scale represents the distance between the chroma and the closest matching key template: darker areas represent stronger harmonic alignment, and lighter areas represent weaker harmonic alignment.

This chordogram shows the clear harmonic loops in House Song. There are dark horizontal bands at the choruses, showing repeated strong matches with the same chords. This is typical for house music, where chord progressions loop in a consistent way. The identity normalization keeps the raw chroma values, and cosine distance focuses on the direction of the chroma vectors. This shows strong matches more clearly.

Chordogram: House Song (normalistation = manhattan, distance = manhattan)


A chordogram visualizes how well the chroma features of a song match different chord templates over time. Each row represents a chord template and each column is a time slice. The color indicates the distance: how well the chroma at that moment matches the chord. The color scale represents the distance between the chroma and the closest matching key template: darker areas represent stronger harmonic alignment, and lighter areas represent weaker harmonic alignment.

This version of House Song shows a more structured result. The structure is still visible, but the colors are less defined. That’s because the chroma is normalized using Manhattan normalisation, and because the distance is calculated using Manhattan distance. This type of distance is more sensitive to small deviations. As a result, the strong chord matches are less visibly clear. This normalisation and distance can detect more subtle harmonic shifts.

Chordogram: Trance Song (normalistation = identity, distance = cosine)


A chordogram visualizes how well the chroma features of a song match different chord templates over time. Each row represents a chord template and each column is a time slice. The color indicates the distance: how well the chroma at that moment matches the chord. The color scale represents the distance between the chroma and the closest matching key template: darker areas represent stronger harmonic alignment, and lighter areas represent weaker harmonic alignment.

For Trance Song, this version shows a more harmonic pattern. There are fewer clearly repeated bands, and instead we see a lot of different matches across different chords. This shows exactly how the genre trance is like: only little difference between chorus and verses. The identity normalization keeps the raw chroma values, and cosine distance focuses on the direction of the chroma vectors. This shows strong matches more clearly.

Chordogram: Trance Song (normalistation = manhattan, distance = manhattan)


A chordogram visualizes how well the chroma features of a song match different chord templates over time. Each row represents a chord template and each column is a time slice. The color indicates the distance: how well the chroma at that moment matches the chord. The color scale represents the distance between the chroma and the closest matching key template: darker areas represent stronger harmonic alignment, and lighter areas represent weaker harmonic alignment.

This chordogram looks the most scattered, with hardly any clear strong matches. The combination of normalized chroma and Manhattan distance makes the display more sensitive to subtle variations in pitch distribution. This together with the fact that Trance Song’s chords doesn’t change that much, makes it hard to draw a conclusion from this graph.

Chroma-based self-similarity of House Song


A self-similarity matrix compares every moment of a song with every other moment. The x and y axes both represent time. The color shows how similar two moments are: darker is more similar, lighter is less similar. This helps to reveal the structure of a song: repetitions show up as diagonal lines, and breaks or transitions appear as shifts in the pattern. This self-similarity is based on chroma, which means it can find harmonic/melodic structure.

This chroma-based self-similarity of House Song shows very strong dark blocks. These little blocks show that the harmonic content repeats a lot of times throughout the track. This repeating pattern of chord progressions is typical for house music. Again, the bridges of the song are clearly visible.

Chroma-based self-similarity of Trance Song


A self-similarity matrix compares every moment of a song with every other moment. The x and y axes both represent time. The color shows how similar two moments are: darker is more similar, lighter is less similar. This helps to reveal the structure of a song: repetitions show up as diagonal lines, and breaks or transitions appear as shifts in the pattern. This self-similarity is based on chroma, which means it can find harmonic/melodic structure.

Compared to House Song, this matrix is less in a less structured way. In the graph we can see there are less repeated sections; there’s only the usual dark diagonal line. This is typical for trance: it uses the same elements throughout the entire song.

4: Loudness

Energy novelty of House Song


Energy novelty functions measure changes in a song’s loudness or dynamics. Peaks represent drops, breakdowns, or sudden boosts in energy. These help to show the structure and tension curve of a track.

There are many clear peaks in this graph at 14 seconds (riser with introduction of synth, hats and snares), 29 seconds (first drop)), 103 seconds (second drop) and 177 seconds (third drop). During these drops, there’s first a repeated crash before the drop. After the drop, there’s a kick and a bass coming in, creating the enery peaks. The graphs shows the structure of House Song loop-based, with predictable bursts of energy.

Energy novelty of Trance Song


Energy novelty functions measure changes in a song’s loudness or dynamics. Peaks represent drops, breakdowns, or sudden boosts in energy. These help to show the structure and tension curve of a track.

This graph has 2 huge peaks: one at 14 seconds (first drop) and one at 69 seconds (second drop). During these drops, there’s first a repeated crash before the drop. After the drop, there’s a kick and a bass coming in, creating the enery peaks. You can tell the build-up of Trance Song is longer by the higher energy peaks around the highest peak, indicating more energy before the drop compared to House Song. Throughout the rest of the song, the energy is consistent. This is usual for trance.

Spectral novelty of House Song


Spectral novelty tracks how the timbre and frequency content of a song change over time. Peaks represent shifts in instrumentation or pitch content. These show transitions, build-ups, or new layers.

The graph has many small peaks and visible cycles. This suggests that although the timbre evolves, there are repeating sections. The higher peaks in this graph repeat every 8 beats. This is especially visible towards the end of the song.

Spectral novelty of Trance Song


Spectral novelty tracks how the timbre and frequency content of a song change over time. Peaks represent shifts in instrumentation or pitch content. These show transitions, build-ups, or new layers.

Trance has a flatter and more dense spectral novelty curve. Fewer dramatic jumps, but lots of small fluctuations. This again supports the idea that Trance Song is more gradual compared House Song. The 2 highest peaks in the spectral novelty are a repeated drum starting at 63 seconds and a bridge at 66 seconds.

5: Timbre features

Cepstogram of House Song


A cepstogram visualizes how the timbre of a song evolves over time. It’s based on MFCCs, which model how humans perceive sound. The x-axis shows time and the y-axis shows the MFCC coefficient. The color represents the intensity of each coefficient.

In House Song’s cepstrogram, there are repeated darker green vertical patterns, matching the structure of House Song: these show where the bridges are. Furthermore, there’s the usual horizontal blue band at y=0 and light green band at y=1, representing the core timbre.

Cepstogram of Trance Song


A cepstogram visualizes how the timbre of a song evolves over time. It’s based on MFCCs, which model how humans perceive sound. The x-axis shows time and the y-axis shows the MFCC coefficient. The color represents the intensity of each coefficient.

For Trance Song, there’s only 1 slightly darker green vertical band at 64-74 seconds. This represents the bridge. For the rest, the cepstrogram is almost continuously the same. Furthermore, there’s the usual horizontal blue band at y=0 and light green band at y=1, representing the core timbre.

Timbre-based self-similarity of House Song


A self-similarity matrix compares every moment of a song with every other moment. The x and y axes both represent time. The color shows how similar two moments are: darker is more similar, lighter is less similar. This helps to reveal the structure of a song: repetitions show up as diagonal lines, and breaks or transitions appear as shifts in the pattern. This self-similarity is based on chroma, which means it can find harmonic/melodic structure.

House Song has a very blocky and repeating structure, with clear rectangular patterns and strong diagonal lines. This repetitive, loop-based music is typical for rally house.

Timbre-based self-similarity of Trance Song


A self-similarity matrix compares every moment of a song with every other moment. The x and y axes both represent time. The color shows how similar two moments are: darker is more similar, lighter is less similar. This helps to reveal the structure of a song: repetitions show up as diagonal lines, and breaks or transitions appear as shifts in the pattern. This self-similarity is based on chroma, which means it can find harmonic/melodic structure.

This plot is more continuous, as we have seen already a couple times by now. There are a lot of lighter blue and darker blue vertical lines. This show that the timbre is rapidly morphing.

6: Temporal features

Regular tempogram of House Song


A regular tempogram shows how the tempo changes over time in a track. The x-axis represents time in seconds and the y-axis shows the tempo of the song in that particular moment. Brighter colors represent the BPM at a specific time in the song. The regular part of the tempogram makes it so it shows the correct tempo of the song together wtih its tempo harmonics.

House Song shows a tempo of 128 BPM, which is the most common BPM for rally house. The other lines in the graph are tempo harmonics. These are at the tempi 256 (128x2), 384 (128x3) and 512 (128x4). The drops in tempo indicate moments where a bridge starts or ends, even though the tempo doesn’t change.

Regular tempogram of Trance Song


A regular tempogram shows how the tempo changes over time in a track. The x-axis represents time in seconds and the y-axis shows the tempo of the song in that particular moment. Brighter colors represent the BPM at a specific time in the song. The regular part of the tempogram makes it so it shows the correct tempo of the song together wtih its tempo harmonics.

Trance song’s regular tempogram shows a very consistent tempo around 150 BPM, which is very common for trance music. You can also see the tempo harmonics at 300, 450 and 600 BPM. Opposed to House Song, there are no parts that confuse the tempogram in thinking there’s a tempo change.

Cyclic tempogram of House Song


A cyclic tempogram shows how the tempo changes over time in a track. The x-axis represents time in seconds and the y-axis shows the tempo of the song in that particular moment. Brighter colors represent the BPM at a specific time in the song. The cyclic part of the tempogram makes it so it only shows the correct tempo of the song without its tempo harmonics.

House Song shows a tempo of 128 BPM, which is the most common BPM for rally house. The tempogram is cyclic, so there are no tempo harmonics. The drops in tempo indicate moments where a bridge starts or ends, even though the tempo doesn’t change.

Cyclic tempogram of Trance Song


A cyclic tempogram shows how the tempo changes over time in a track. The x-axis represents time in seconds and the y-axis shows the tempo of the song in that particular moment. Brighter colors represent the BPM at a specific time in the song. The cyclic part of the tempogram makes it so it only shows the correct tempo of the song without its tempo harmonics.

Trance song’s regular tempogram shows a very consistent tempo around 150 BPM, which is very common for trance music. The tempogram is cyclic, so there are no tempo harmonics. Opposed to House Song, there are no parts that confuse the tempogram in thinking there’s a tempo change. However, there is a light blue horizontal band at 113 BPM.

7: Classification: K-Nearest Neighbor

K-Nearest Neighbor: description

The K-Nearest Neighbors (KNN) model classifies songs by looking at the most similar examples in the training set. It compares a song’s features like valence, arousal, danceability, instrumentalness, and tempo to nearby values (aka neighbors), and assigns the most common label among these data points (AI or non-AI). On this page, you can see the results of labelling the class corpus with the use of KNN.


. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

K-nearest neighbor: individual predictions

KNN: Actual vs. Predicted AI Classification
filename actual predicted correct
reinout-w-1 AI non-AI
reinout-w-2 non-AI AI
ahram-j-1 non-AI AI
ahram-j-2 AI AI ✔️
aleksandra-b-1 non-AI non-AI ✔️
aleksandra-b-2 non-AI AI
angelo-w-1 AI non-AI
angelo-w-2 AI AI ✔️
berend-b-1 AI non-AI
berend-b-2 AI AI ✔️
bram-d-1 non-AI non-AI ✔️
bram-d-2 AI AI ✔️
cecilia-b-1 non-AI AI
cecilia-b-2 non-AI non-AI ✔️
desmond-l-1 AI AI ✔️
desmond-l-2 non-AI non-AI ✔️
ellen-r-1.mp3 non-AI AI
ellen-r-2.mp3 non-AI AI
erik-l-1 AI AI ✔️
erik-l-2 non-AI non-AI ✔️
evan-l-1 AI AI ✔️
evan-l-2 AI non-AI
filip-z-1 AI AI ✔️
filip-z-2 AI non-AI
gijs-s-1 AI non-AI
gijs-s-2 AI AI ✔️
hidde-s-1 AI non-AI
hidde-s-2 AI AI ✔️
isa-h-1 AI AI ✔️
isa-h-2 AI non-AI
jasper-v-1 non-AI AI
jasper-v-2 non-AI non-AI ✔️
jelle-w-1 non-AI non-AI ✔️
jelle-w-2 non-AI non-AI ✔️
judith-h-1 AI non-AI
judith-h-2 AI AI ✔️
ke-w-1 AI AI ✔️
ke-w-2 non-AI non-AI ✔️
lai-z-1 AI non-AI
lai-z-2 non-AI non-AI ✔️
lennart-p-1 AI non-AI
lennart-p-2 AI AI ✔️
lesley-n-1 AI AI ✔️
lesley-n-2 non-AI non-AI ✔️
lo-l-1 AI AI ✔️
lo-l-2 non-AI non-AI ✔️
lucas-w-1 AI AI ✔️
lucas-w-2 AI AI ✔️
marit-r-1 AI AI ✔️
marit-r-2 non-AI AI
mees-k-1 AI non-AI
mees-k-2 non-AI non-AI ✔️
mette-l-1 AI AI ✔️
mette-l-2 AI AI ✔️
popke-s-1 AI AI ✔️
popke-s-2 AI non-AI
raphael-h-1 AI AI ✔️
raphael-h-2 AI non-AI
roemer-i-1 AI AI ✔️
roemer-i-2 non-AI non-AI ✔️
ruishan-h-1 non-AI non-AI ✔️
ruishan-h-2 non-AI AI
sanne-o-1 non-AI non-AI ✔️
sanne-o.2 AI non-AI
sanne-v-1 non-AI non-AI ✔️
sanne-v-2 non-AI non-AI ✔️
sarya-n-1 non-AI non-AI ✔️
sarya-n-2 non-AI non-AI ✔️
senn-v-1 AI AI ✔️
senn-v-2 AI AI ✔️
sven-n-1 non-AI non-AI ✔️
sven-n-2 AI AI ✔️
sytze-m-1 non-AI AI
sytze-m-2 AI AI ✔️
thijmen-g-1 non-AI AI
thijmen-g-2 non-AI AI
thomas-r-1 non-AI non-AI ✔️
thomas-r-2 AI AI ✔️
ties-o-1 non-AI AI
ties-o-2 non-AI AI
tuna-a-1 non-AI AI
tuna-a-2 non-AI AI
tymon-z-1 AI AI ✔️
tymon-z-2 non-AI AI
wietske-b-1 non-AI AI
wietske-b-2 AI AI ✔️
wijnand-h-1 AI AI ✔️
wijnand-h-2 AI AI ✔️
xuelong-f-1 non-AI AI
xuelong-f-2 AI AI ✔️

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Mosaic


A mosaic plot visualizes the confusion matrix as rectangles. The size of the rectangles corresponds to the number of predicitions in each category.

As we can see in the mosaic plot, KNN classifies most of the songs correct. On average, about 70% of the songs is classified correctly, which is a decent score for such a simple model.

Heatmap


The heatmap version of the confusion matrix shows how many times each prediction outcome occurred, while the shape stays the same.

As we can see in the heatmap plot, KNN classifies most of the songs correct. On average, about 70% of the songs is classified correctly, which is a decent score for such a simple model.

Precision and Recall

Precision and Recall (KNN)
class precision recall
AI 0.64 0.69
non-AI 0.59 0.54

The precision describes the amount of true positives out of all positives (= true positives + false positives). The recall describes the amount of true positives out of all true positives + false negatives. These scores show how well a model has performed. AI songs usually get a slightly better precision and recall than non-AI songs. This means that KNN is better at correctly identifying AI songs than non-AI songs.

8: Classification: Random Forest

Random Forest: description

This Random Forest model classifies songs as either AI or non-AI using the audio features valence, arousal, danceability, instrumentalness, and tempo. It uses decision trees to find patterns in the data and make predictions.


. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Random Forest: individual predictions

Random Forest: Actual vs. Predicted AI Classification
filename actual predicted correct
reinout-w-1 non-AI non-AI ✔️
reinout-w-2 non-AI non-AI ✔️
ahram-j-1 AI AI ✔️
ahram-j-2 AI AI ✔️
aleksandra-b-1 non-AI non-AI ✔️
aleksandra-b-2 AI AI ✔️
angelo-w-1 non-AI non-AI ✔️
angelo-w-2 non-AI non-AI ✔️
berend-b-1 AI AI ✔️
berend-b-2 AI AI ✔️
bram-d-1 AI AI ✔️
bram-d-2 AI AI ✔️
cecilia-b-1 AI AI ✔️
cecilia-b-2 AI AI ✔️
desmond-l-1 AI AI ✔️
desmond-l-2 AI AI ✔️
ellen-r-1.mp3 AI AI ✔️
ellen-r-2.mp3 AI AI ✔️
erik-l-1 AI AI ✔️
erik-l-2 non-AI non-AI ✔️
evan-l-1 AI AI ✔️
evan-l-2 AI AI ✔️
filip-z-1 non-AI non-AI ✔️
filip-z-2 AI AI ✔️
gijs-s-1 AI AI ✔️
gijs-s-2 AI AI ✔️
hidde-s-1 non-AI non-AI ✔️
hidde-s-2 AI AI ✔️
isa-h-1 non-AI non-AI ✔️
isa-h-2 non-AI non-AI ✔️
jasper-v-1 AI AI ✔️
jasper-v-2 non-AI AI
jelle-w-1 non-AI non-AI ✔️
jelle-w-2 non-AI non-AI ✔️
judith-h-1 AI AI ✔️
judith-h-2 non-AI non-AI ✔️
ke-w-1 AI AI ✔️
ke-w-2 AI AI ✔️
lai-z-1 AI AI ✔️
lai-z-2 non-AI non-AI ✔️
lennart-p-1 non-AI non-AI ✔️
lennart-p-2 non-AI non-AI ✔️
lesley-n-1 non-AI AI
lesley-n-2 non-AI non-AI ✔️
lo-l-1 non-AI non-AI ✔️
lo-l-2 non-AI non-AI ✔️
lucas-w-1 non-AI non-AI ✔️
lucas-w-2 non-AI non-AI ✔️
marit-r-1 AI AI ✔️
marit-r-2 AI AI ✔️
mees-k-1 AI AI ✔️
mees-k-2 AI AI ✔️
mette-l-1 non-AI non-AI ✔️
mette-l-2 non-AI non-AI ✔️
popke-s-1 non-AI non-AI ✔️
popke-s-2 non-AI non-AI ✔️
raphael-h-1 non-AI non-AI ✔️
raphael-h-2 non-AI non-AI ✔️
roemer-i-1 AI AI ✔️
roemer-i-2 AI AI ✔️
ruishan-h-1 AI AI ✔️
ruishan-h-2 AI AI ✔️
sanne-o-1 AI AI ✔️
sanne-o.2 AI AI ✔️
sanne-v-1 non-AI non-AI ✔️
sanne-v-2 non-AI non-AI ✔️
sarya-n-1 AI AI ✔️
sarya-n-2 AI AI ✔️
senn-v-1 non-AI non-AI ✔️
senn-v-2 non-AI non-AI ✔️
sven-n-1 AI AI ✔️
sven-n-2 AI AI ✔️
sytze-m-1 non-AI non-AI ✔️
sytze-m-2 non-AI non-AI ✔️
thijmen-g-1 non-AI non-AI ✔️
thijmen-g-2 non-AI non-AI ✔️
thomas-r-1 AI AI ✔️
thomas-r-2 AI AI ✔️
ties-o-1 AI AI ✔️
ties-o-2 AI AI ✔️
tuna-a-1 AI AI ✔️
tuna-a-2 AI AI ✔️
tymon-z-1 non-AI non-AI ✔️
tymon-z-2 non-AI non-AI ✔️
wietske-b-1 AI AI ✔️
wietske-b-2 AI AI ✔️
wijnand-h-1 AI AI ✔️
wijnand-h-2 AI AI ✔️
xuelong-f-1 non-AI non-AI ✔️
xuelong-f-2 non-AI non-AI ✔️

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Random Forest: precision and recall

Precision and Recall (Random Forest)
class precision recall
AI 0.63 0.67
non-AI 0.58 0.54

The precision describes the amount of true positives out of all positives (= true positives + false positives). The recall describes the amount of true positives out of all true positives + false negatives. These scores show how well a model has performed. AI songs usually get a slightly better precision and recall than non-AI songs. This means that Random Forest is better at correctly identifying AI songs than non-AI songs.

Feature importance


This bar plot shows which features the Random Forest model considered most helpful for classification. Instrumentalness, arousal, and danceability are the features that helped the most with classifying the songs. These rankings show which features of the class corpus have the biggest difference between AI songs and non-AI songs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

AI vs. non-AI songs


This scatterplot shows different aspects of songs of the class corpus: tempo, arousal and danceability. Purple points represent AI songs, and yellow ones represent non-AI songs, with the size of each point indicating danceability. As we can see, a lot of the songs with the highest tempo are non-AI. Furthermore, a lot of the songs with a BPM between 95 and 140 are AI generated. Apparently the genres with these BPM are genres that AI produces a lot for. This graph also shows that Trance Song’s tempo is incorrectly identified; its BPM is 150 (instead of the identified half-time 75).

9: Contribution

Conclusion

The conclusion of this portfolio is that both songs clearly have their own structure, even though their genres are similar. This could be seen in basically every graph.

Furthermore, House Song shows more variation in general. This can for example be seen in its chordograms and self-similarity matrix. These graphs show that the bridge of House Song has some different features from the rest of the song. We can also conclude that House Song has an average strucure, with verses, choruses and bridges alternating in standard ratios.

Trance Song is more the same throughout the song. It’s graphs look a bit less interesting, especially the self-similarity matrix and the tempogram. All of them are pretty straight-forward; there is not really something surprising. Trance Song has a bit less structure in it: it’s a lot of chorus, and less other parts. When it comes to my taste, I like House Song better to dance on. This is partly because it has a bit more variation compared to Trance Song.

These conclusions would benefit DJ’s, like myself. When mixing in a new song, it’s important this new song’s key isn’t too far off of the current song in the circle of fifths. With the use of keygrams and chordograms, we can find even more specific information about the song compared to the key. When used correctly, we can make even smoother transitions, based on for example chords. The novelty functions showing the structure of the song is also helpful for DJ’s; these help the DJ to time when the transition would occur.

These conclusions would also producers. Producers, especially beginner ones, may have a hard time figuring out what patterns in for example key or in chord to use for a certain genre. My plots can show which are good default picks for both genres. The novelty functions also outline a good structure of a song for both genres.


. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .